package jw.hospital.hosp.model.hospital;

/*
 *@Author Mark Lee
 *@Date 2021/9/7 6:18
 */

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jw.hospital.hosp.model.base.BaseMongoEntity;
import lombok.Data;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(description = "Schedule")
@Document(value = "Schedule")
public class Schedule extends BaseMongoEntity {
    private static final long serialVersionUID = 1597907403972807654L;

    @ApiModelProperty(value = "医院编号")
    @Indexed
    private String hoscode;

    @ApiModelProperty(value = "科室编号")
    @Indexed
    private String depcode;

    @ApiModelProperty(value = "职称")
    private String title;

    @ApiModelProperty(value = "医生名称")
    private  String docname;

    @ApiModelProperty(value = "擅长技能")
    private  String skill;

    @ApiModelProperty(value = "排班日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private  Date workDate;

    @ApiModelProperty(value = "排班时间(0:上午 1：下午)")
    private  Integer  workTime;

    @ApiModelProperty(value = "可预约数")
    private  Integer  reserveNumber;

    @ApiModelProperty(value = "剩余预约数")
    private  Integer  availableNumber;

    @ApiModelProperty(value = "挂号费")
    private  BigDecimal  amount;

    @ApiModelProperty(value = "排班状态(-1:停诊 0：停约 1：可约)")
    private  Integer  status;

    @ApiModelProperty(value = "排班编号(医院自己的排班主键)")
    @Indexed
    private  String   hosScheduleId;

}
